/*
 * DeleteOriginalsAction.java
 *
 * Created on 15 April 2007, 16:37
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.cardcopier.ui;

import java.awt.event.ActionEvent;
import java.io.IOException;
import javax.swing.AbstractAction;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import org.cardcopier.CardCopierModel;
import org.cardcopier.file.FileUtils;

/**
 *
 * @author Mark
 */
public class RefreshAction extends AbstractAction {
    
    private final CardCopierModel cardCopierModel;
    
    /** Creates a new instance of DeleteOriginalsAction */
    public RefreshAction(CardCopierModel cardCopierModel) {
        super("Refresh");
        this.cardCopierModel = cardCopierModel;
    }

    public void actionPerformed(ActionEvent e) {
        cardCopierModel.notifyOfDestinationChange();
        cardCopierModel.notifyOfSourceLocationChange();
    }
    
}
